/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_TREEVIEW_H__
#define __LUA_TREEVIEW_H__
#pragma once

#include "../List/LuaList.h"

namespace DuiLib {

class LuaTreeView : public LuaList
{
    SDLUA_CLASS_DECLARE(LuaTreeView);

    UINT GetListType();
    int Add(LuaState *L);
    int AddAt(LuaState *L);
    int Remove(LuaState *L);
    bool RemoveAt(int iIndex);
    void RemoveAll();
    /*bool OnCheckBoxChanged(void* param);
    bool OnFolderChanged(void* param);
    bool OnDBClickItem(void* param);*/
    int SetItemCheckBox(LuaState *L);
    int SetItemExpand(LuaState *L);
    //void Notify(TNotifyUI& msg);
    void SetVisibleFolderBtn(bool _IsVisibled);
    bool GetVisibleFolderBtn();
    void SetVisibleCheckBtn(bool _IsVisibled);
    bool GetVisibleCheckBtn();
    void SetItemMinWidth(UINT _ItemMinWidth);
    UINT GetItemMinWidth();
    void SetItemTextColor(DWORD _dwItemTextColor);
    void SetItemHotTextColor(DWORD _dwItemHotTextColor);
    void SetSelItemTextColor(DWORD _dwSelItemTextColor);
    void SetSelItemHotTextColor(DWORD _dwSelHotItemTextColor);
};

}

#endif //__LUA_TREEVIEW_H__